/**
 *  微震监测 api
 *  @module api/microSeismic
 *  @author coder
 */

// API_HOST
import {
	API_HOST
} from '@/config'

// axios
import axios from '@u/axios'

/**
 * 近24小时微震次数
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const daily = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/microearthquakeDaily'
})

/**
 * 近一周微震次数
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const weekly = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/microearthquakeWeekly'
})

/**
 * 昨日微震次数
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const yestoday = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/microearthquakeYestoday'
})

/**
 * 微震次数和能量统计
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const energy = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/microearthquakeEnergy'
})

/**
 * 事件查询
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const eventQuery = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/monitoringAlarmDetails/eventQuery'
})